Skip to content

Review session page: follow one review step by step - #301

Merged
nambok merged 1 commit into
mainfrom
review-session-page
Nov 3, 2026
Merged

nambok merged 1 commit into
mainfrom
review-session-page

Conversation

@nambok

@nambok nambok commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

The dashboard half of review sessions (backend: coderhelm-platform #445). A PR's "Coderhelm review" check links to /reviewer/session?id=<job id>, a page that follows one review step by step.

Changes

  • New page /reviewer/session?id= (static export, query param like reviewer/detail and reviewer/pr). Calls GET /api/reviewer/session, refreshes every 4s while in_flight and the tab is visible, and refreshes at once when the tab comes back.
  • Composable sections in reviewer/session/sections.tsx: a notice (reason, or what retrying, stalled and failed mean), the outcome when done (verdict, finding count, link to the posted review), facts (trigger, kind and try, commit, started, finished, duration), and the step timeline (offset from the start, exact time on hover, detail behind a "More" toggle).
  • Loading, not found (also for malformed ids, which never reach the API), no permission (403) and load error states.
  • Pure helpers in reviewer/session/session.ts: status look per status (reviewing, done, skipped, retrying, failed, stalled), trigger and kind words, duration and step offsets, finding count words.
  • reviewer/pr: a "View session" link when the gate response has session_id.
  • ReviewSession and SessionStep types in lib/api, held to the platform's OpenAPI document (openapi-fields.ts regenerated at Changelog: November 17 replies release notes #445's merge commit, new lines in api-contract.ts).
  • Route map entry and wide-data fixtures, so the phone-width, word-break and readable-text suites cover the page.
  • Docs: the reviewer page explains the check, its Details link, how it ends, and the Checks permission.

Verification

  • npm run lint, npm run typecheck, npm run check:openapi, npm run build in dashboard/.
  • New e2e/reviewer-session.spec.ts (4 helper tests, 5 page tests: live refresh then verdict, polling stops when done and while the tab is hidden, skipped and retried notices, missing, malformed, forbidden and error states, the PR page link).
  • Ran against the static build: reviewer-session, reviewer-gate, no-sideways-scroll, no-mid-word-breaks, readable-text and topbar specs, 286 passed.

Adds /reviewer/session?id=<job id>, the page a PR's Coderhelm review check
links to. It shows the PR, what asked for the review, its status, start and
finish times, every step as a timeline (details on demand), and once done
the verdict, finding count and a link to the posted review. It refreshes
every 4s while the review runs and the tab is visible.

The PR page links to its latest session. Docs explain the check.
@nambok
nambok merged commit 87f85f5 into main Nov 3, 2026
10 checks passed
@nambok
nambok deleted the review-session-page branch November 3, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant